/* 客户组件样式 */
.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
}

.table {
  width: 100%;
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  background-color: #f8f9fa;
  color: #495057;
  white-space: nowrap;
}

.table td, .table th {
  vertical-align: middle;
  padding: 0.75rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

/* 按钮样式 */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff;
  color: #fff;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

.btn-outline-success {
  color: #28a745;
  border-color: #28a745;
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: #fff;
}

/* 分页样式 */
.pagination-info {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 31px;
}

.page-item .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: #007bff;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

.form-select-sm {
  font-size: 0.85rem;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
}

/* 输入框样式 */
.form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 模态框样式 */
.modal-backdrop {
  z-index: 1040;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal {
  z-index: 1050;
}

.modal.show {
  display: block;
}

.modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modal-title {
  font-weight: 600;
  color: #333;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* 复选框样式 */
.form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  cursor: pointer;
}

/* 搜索区域样式 */
.search-section {
  background-color: #f9fafb;
  padding: 1.25rem;
}

.search-group {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-group .input-group-text {
  border-radius: 4px 0 0 4px;
  border-color: #efefef;
}

.search-group .form-control {
  border-color: #efefef;
}

.search-group .form-control:focus {
  box-shadow: none;
  border-color: #efefef;
}

.search-group .btn {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 表格样式增强 */
.custom-table {
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table th {
  padding: 0.85rem 0.75rem;
  font-size: 0.9rem;
}

.custom-table td {
  padding: 0.85rem 0.75rem;
  font-size: 0.9rem;
}

.custom-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #f8f9fa;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* 操作按钮样式 */
.action-buttons {
  white-space: nowrap;
}

.action-buttons .btn {
  padding: 0.375rem 0.5rem;
  transition: all 0.2s;
}

.action-buttons .btn-outline-primary {
  color: #007bff;
  background-color: transparent;
  border-color: #007bff;
}

.action-buttons .btn-outline-primary:hover {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.action-buttons .btn-outline-danger {
  color: #dc3545;
  background-color: transparent;
  border-color: #dc3545;
}

.action-buttons .btn-outline-danger:hover {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

/* 模态框增强样式 */
.custom-modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-header .modal-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
}

.modal-header .modal-title i {
  margin-right: 0.5rem;
  color: #007bff;
}

.modal-header, .modal-footer {
  padding: 1rem 1.5rem;
}

.modal-footer {
  justify-content: space-between;
}

.modal-footer::before {
  display: none;
}

.modal-footer::after {
  display: none;
}

/* 表单样式增强 */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control {
  padding: 0.5rem 0.75rem;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.text-danger {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* 当模态框打开时应用于body的样式 */
:host-context(body.modal-open) {
  overflow: hidden;
} 